# Contributor: Jeff Bilyk <jbilyk at gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=nload
pkgver=0.7.4
pkgrel=6
pkgdesc="Console network traffic and bandwidth monitor"
url="http://www.roland-riegel.de/nload"
arch="all"
license="GPL-2.0-only"
makedepends="ncurses-dev"
subpackages="$pkgname-doc"
source="http://www.roland-riegel.de/nload/nload-$pkgver.tar.gz"
options="!check"

prepare() {
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="ca3e36d3f77c5a7994a3261042fb65a1458a29c769e6bebbe3b8e49b3045aca6f4d047065d11431b28368e0d881c24c92533fa24f0e54ac270f1f5bccfb5c0af  nload-0.7.4.tar.gz"
